package demo.dao.impl;

import java.util.List;

import demo.dao.UserDao;
import demo.entity.User;

public class UserDaoImpl extends GenericDaoImpl<User, Integer> implements UserDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<User> login(String queryString, String[] values) {
		String[] paramNames = {"username", "password"};
		return getHibernateTemplate().findByNamedParam(queryString, paramNames, values);
	}

}
